<template>
  <div class="component">
    这是一个测试用的组件
    服务器数据
    <div>
      <div v-for="(v, k) in server">{{k}}的值：{{v}}</div>
    </div>
  </div>
</template>

<script>
  import {VueExtend} from 'godspen-lib'

  export default {
    mixins: [VueExtend.mixin],
    name: 'awen-test',
    label: process.env.LABEL,
    style: process.env.STYLE,
    props: {
    },
    computed: {
    },
    data: function () {
      return {
        server: {}
      }
    },
    editorMethods: {
    },
    methods: {
    }
  }
  /*
  return {
    mounted: function() {
      console.log('aaaa');
      var that = this
      var lib = that.$options.$lib
      lib.Server.fetch('https://weixin.jlqfybjy.xyz/gods.php').then(function(res){
        var data = res.json();
        return data;
      }).then(function(json){
        console.log(json)
        that.server = json.data
      })
    }
  }
  */
</script>

<style lang="stylus" rel="stylesheet/stylus" type="text/stylus" scoped>
  .component {
    color: red;
  }
</style>
